Category: r statistics
11/14/11 03:09 - ID#55510
Where is R installed on Linux?
whereis R
Turns out R on linux is installed in the following directory structures:
- /usr/bin/R : this is the executable binary
- /usr/lib64/R
ls
bin COPYING etc include lib library modules NEWS NEWS.pdf SVN-REVISION
- /usr/include/R
ls
Rconfig.h Rembedded.h R.h Rinternals.h Rversion.h
Rdefines.h R_ext Rinterface.h Rmath.h S.h
- /usr/share/R
ls
encodings java library licenses locale make R sh texmf
- /usr/share/man/man1/R.1.gz : possibly the manual pages
Permalink: Where_is_R_installed_on_Linux_.html
Words: 100
Last Modified: 11/14/11 03:18
Category: r statistics
10/26/11 10:41 - ID#55380
Writing Functions in R: Part 2
But for now, I think it's super important to know how to apply a function once I have written it using what else but...
- The output of Apply can be a vector or array or list of values
- The input of Apply is always a matrix. So make sure to insert a "as.matrix" before anything you want to apply your function on.
Basic syntax:
apply(as.matrix(some object which is not a matrix already), Starting Row, function)
For eg.
Out <- apply(as.matrix(list of element), 1, function)
Permalink: Writing_Functions_in_R_Part_2.html
Words: 113
Last Modified: 10/26/11 10:43
Category: r statistics
10/24/11 07:21 - ID#55372
Writing Functions in R: Part I
Basic Syntax
NewFunction <- function (input){ answer <- some manipulation with the input answer }
- NewFunction is the name of the new function.
- function is the R function that creates functions.
- input is the "argument" of a function
- { delimits the beginning of the function
- } delimits the end of the function
- the last statement (in this case, just "answer", returns the answer as the output of the function. I could also have said return(answer).
Permalink: Writing_Functions_in_R_Part_I.html
Words: 139
Last Modified: 10/24/11 07:26
Author Info
Date Cloud
- 12/21
- 12/15
- 02/15
- 01/15
- 11/14
- 08/14
- 04/14
- 02/14
- 11/13
- 07/13
- 09/12
- 08/12
- 07/12
- 04/12
- 03/12
- 02/12
- 01/12
- 12/11
- 11/11
- 10/11
- 09/11
- 08/11
- 07/11
- 06/11
- 05/11
- 04/11
- 03/11
- 02/11
- 01/11
- 12/10
- 11/10
- 10/10
- 09/10
- 08/10
- 07/10
- 06/10
- 05/10
- 04/10
- 03/10
- 02/10
- 01/10
- 12/09
- 11/09
- 10/09
- 09/09
- 08/09
- 07/09
- 06/09
- 05/09
- 04/09
- 03/09
- 02/09
- 01/09
- 12/08
- 11/08
- 10/08
- 09/08
- 08/08
- 07/08
- 06/08
- 05/08
- 04/08
- 12/07
- 11/07
- 10/07
- 09/07
- 08/07
- 07/07
- 06/07
- 05/07
- 04/07
Category Cloud
More Entries
After This
My Fav Posts
- Click the heart at the bottom of anyone's blog entry to add it here ;(